package com.itheima;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Test02 {
    public static void main(String[] args) throws ParseException {
        String birthday = "1971年08月28日";
        String today = "2021年4月11日";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
        long time1 = sdf.parse(birthday).getTime();
        long time2 = sdf.parse(today).getTime();
        long time3 = (time2 - time1) / (1000 * 60 * 60 * 24);
        System.out.println(time3);

    }
}
